package io.modelcontextprotocol.kotlin.sdk.types

import kotlinx.serialization.EncodeDefault
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Serializable

@Serializable
public data class PingRequest(override val params: BaseRequestParams? = null) :
    ClientRequest,
    ServerRequest {
    @OptIn(ExperimentalSerializationApi::class)
    @EncodeDefault
    override val method: Method = Method.Defined.Ping

    public val meta: RequestMeta?
        get() = params?.meta
}
